---
sidebar_label: hasura update-cli
sidebar_position: 39
description: Update the CLI to latest or a specific version using the Hasura CLI
keywords:
  - hasura
  - docs
  - CLI
  - hasura update-cli
---

# Hasura CLI: hasura update-cli

Update the CLI to latest or a specific version.

## Synopsis

You can use this command to update the CLI to the latest version or a specific version. Each time you run a CLI command, if a new version is available, you will be prompted to update the CLI.

```bash
hasura update-cli [flags]
```

## Examples

```bash
# Update CLI to latest version:
hasura update-cli

# To disable auto-update check on the CLI, set
# "show_update_notification": false
# in ~/.hasura/config.json

# Update CLI to a specific version (say v1.2.0-beta.1):
hasura update-cli --version v1.2.0-beta.1
```

## Options

```sass
-h, --help             help for update-cli
    --version string   a specific version to install
```

## Options inherited from parent commands

```sass
--envfile string      .env filename to load ENV vars from (default ".env")
--log-level string    log level (DEBUG, INFO, WARN, ERROR, FATAL) (default "INFO")
--no-color            do not colorize output (default: false)
--project string      directory where commands are executed (default: current dir)
--skip-update-check   skip automatic update check on command execution
```

## SEE ALSO

- [hasura](/hasura-cli/commands/hasura.mdx) - Hasura GraphQL Engine command line tool

_Auto generated by spf13/cobra_
